package com.it.hanzhongtravelv1.dto;

import com.it.hanzhongtravelv1.entity.Restaurant;

public class RestaurantDTO {
    private Long id;
    private String name;
    private String address;
    private String phone;
    private double rating;
    private String specialtyDish;
    private String averagePrice;
    private String openingHours;
    private String description;

    public RestaurantDTO() {
    }

    public RestaurantDTO(Restaurant restaurant) {
        this.id = restaurant.getId();
        this.name = restaurant.getName();
        this.address = restaurant.getAddress();
        this.phone = restaurant.getPhone();
        this.rating = restaurant.getRating();
        this.specialtyDish = restaurant.getSpecialtyDish();
        this.averagePrice = restaurant.getAveragePrice();
        this.openingHours = restaurant.getOpeningHours();
        this.description = restaurant.getDescription();
    }

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }

    public String getSpecialtyDish() {
        return specialtyDish;
    }

    public void setSpecialtyDish(String specialtyDish) {
        this.specialtyDish = specialtyDish;
    }

    public String getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(String averagePrice) {
        this.averagePrice = averagePrice;
    }

    public String getOpeningHours() {
        return openingHours;
    }

    public void setOpeningHours(String openingHours) {
        this.openingHours = openingHours;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
} 